package cn.tj212.xiaoyin.dto;

public class CodeMsg {
    private int code;
    private String msg;
    public static CodeMsg SUCCESS=new CodeMsg(0,"success");
    public static CodeMsg SERVER_ERR=new CodeMsg(500100,"server error");

    //登录模块
    public static CodeMsg SESSION_ERR=new CodeMsg(500210,"session does not exists or expired");
    public static CodeMsg PASSWORD_EMPTY=new CodeMsg(500211,"password empty error");
    public static CodeMsg MOBILE_EMPTY=new CodeMsg(500212,"mobile empty error");
    public static CodeMsg MOBILE_ERROR=new CodeMsg(500212,"mobile format error");

    private CodeMsg(int code,String msg){
        this.code=code;
        this.msg=msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

}
